<?php
$username=$_POST["username"];
$pwd=$_POST["pwd"];
$phone=$_POST["phone"];
$link = mysqli_connect("localhost","root","root","2113");
$sql = "INSERT INTO user (username,pwd,phone) VALUES('$username','$pwd','$phone')";
$arr = [];
$res = mysqli_query($link,$sql);

if($res){
	$arr['status'] = 1;
	$arr['info'] = "用户名密码正确";
   
}else{
	$arr['status'] = 0;
	$arr['info'] = "用户名或者密码错误";
}
echo json_encode($arr);



?>